home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
os2
/
pvm34b3.zip
/
pvm34b3
/
pvm3
/
gexamples
/
Makefile.aimk
< prev
next >
Wrap
Makefile
|
1997-07-22
|
2KB
|
84 lines
#
# $Id: Makefile.aimk,v 1.3 1997/05/08 16:07:23 pvmsrc Exp $
#
# Makefile for PVM group library example programs.
#
# Set PVM_ROOT to the path where PVM includes and libraries are installed.
# Set PVM_ARCH to your architecture type (SUN4, HP9K, RS6K, SGI, etc.)
# Set ARCHLIB to any special libs needed on PVM_ARCH (-lrpc, -lsocket, etc.)
# otherwise leave ARCHLIB blank
#
# PVM_ARCH and ARCHLIB are set for you if you use "$PVM_ROOT/lib/aimk"
# instead of "make".
#
#PVM_ROOT =
#PVM_ARCH =
#ARCHCFLAGS =
SHELL = /bin/sh
PVMDIR = ../..
PVMIDIR = $(PVMDIR)/include
PVMLDIR = $(PVMDIR)/lib/$(PVM_ARCH)
PVMLIB = $(LOPT) -L$(PVMLDIR) -lgpvm3 -lpvm3 $(ARCHLIB)
CFLOPTS = -g
CFLAGS = $(CFLOPTS) -I$(PVMIDIR) $(ARCHCFLAGS)
SDIR = $(PVMDIR)/gexamples
BDIR = $(PVMDIR)/bin
XDIR = $(BDIR)/$(PVM_ARCH)
#F77 = f77
FORT = `case "$(FC)@$(F77)" in *@) echo $(FC) ;; @*) echo $(F77) ;; *) echo f77;; esac`
FFLOPTS = -g
FFLAGS = $(FFLOPTS) -I$(PVMIDIR) $(ARCHFFLAGS)
PVMFLIB = $(LOPT) -L$(PVMLDIR) -lfpvm3 $(PVMLIB) $(ARCHLIB)
all: joinleave gexamp tst thb tnb ge tjl tjf trsg frsg gs
joinleave: $(SDIR)/joinleave.c
$(CC) $(CFLAGS) -o joinleave $(SDIR)/joinleave.c $(PVMLIB)
cp joinleave $(XDIR)
tst: $(SDIR)/tst.c
$(CC) $(CFLAGS) -o tst $(SDIR)/tst.c $(PVMLIB)
cp tst $(XDIR)
gs: $(SDIR)/gs.c
$(CC) $(CFLAGS) -o gs $(SDIR)/gs.c $(PVMLIB)
cp gs $(XDIR)
ge: $(SDIR)/ge.c
$(CC) $(CFLAGS) -o ge $(SDIR)/ge.c $(PVMLIB)
cp ge $(XDIR)
gexamp: $(SDIR)/gexamp.c
$(CC) $(CFLAGS) -o gexamp $(SDIR)/gexamp.c $(PVMLIB)
cp gexamp $(XDIR)
thb: $(SDIR)/thb.c
$(CC) $(CFLAGS) -o thb $(SDIR)/thb.c $(PVMLIB)
cp thb $(XDIR)
tnb: $(SDIR)/tnb.c
$(CC) $(CFLAGS) -o tnb $(SDIR)/tnb.c $(PVMLIB)
cp tnb $(XDIR)
tjl: $(SDIR)/tjl.c
$(CC) $(CFLAGS) -o tjl $(SDIR)/tjl.c $(PVMLIB)
cp tjl $(XDIR)
tjf: $(SDIR)/tjf.c
$(CC) $(CFLAGS) -o tjf $(SDIR)/tjf.c $(PVMLIB)
cp tjf $(XDIR)
trsg: $(SDIR)/trsg.c
$(CC) $(CFLAGS) -o trsg $(SDIR)/trsg.c $(PVMLIB)
cp trsg $(XDIR)
frsg: $(SDIR)/frsg.f
$(FORT) $(FFLAGS) -o frsg $(SDIR)/frsg.f $(PVMFLIB)
cp frsg $(XDIR)
clean:
rm -f *.o tst thb tnb tjl tjf ge gexamp gs joinleave trsg frsg